<?php
defined('IN_RONCRM') or exit('No permission resources.');
class Admin_Model extends Model {
	public function __construct(){			
		$this->db_config = RonBase::load_config('database');
		$this->db_setting = 'default';
		$this->table_name = 'admin';
		parent::__construct();
	}
	public function rules(){
		return array(
			array('email','email'),
				array('username','require'),
		);
	}
	
	public function attributeLabels()
	{
		return array(
			'email'=>'_IP_'
		);
	}
}